<template>
  <div>
    <!-- 面包屑导航区域-->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>用户管理</el-breadcrumb-item>
      <el-breadcrumb-item>权限列表</el-breadcrumb-item>
    </el-breadcrumb>
    <!-- 卡片视图-->
    <el-card class="box-card">{{test}}
    </el-card>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        test: '12345',
        PermissionList: []
      }
    },
    methods: {
      // 获取权限列表
      async getPermissionList() {
        const {
          data: res
        } =
        await this.$http.get('/Login/Permission/GetPermissionList', {
          params: {
            type: 'list'
          }
        })
        console.log(res.data)
        if (res.meta.status !== 200) {
          return this.$message.error('获取权限列表失败')
        }
        console.log(res.data)
      }
    },
    created() {
      // 获取所有权限
      this.getPermissionList()
    }
  }

</script>

<script lang="less" scoped>

</script>
